package com.htjx.mall.commons.models.user;

import java.math.BigDecimal;
import java.util.Date;


/**
 * 赠券，现金抵用券，不能提现，只能一次性使用，不设找赎，有效期前使用有效
 * @author Administrator
 *
 */
public class Ticket {
	/** id **/
	private long id;
	/** 所属用户id **/
	private long user_id;
	/** 额度 **/
	private BigDecimal amount = BigDecimal.ZERO;
	/** 有效期 **/
	private Date deadline;
	/** 是否已经使用 **/
	private boolean used;
	/** 使用期 **/
	private Date use_date;
	
	
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}
	public long getUser_id() {
		return user_id;
	}
	public void setUser_id(long user_id) {
		this.user_id = user_id;
	}
	public boolean isUsed() {
		return used;
	}
	public void setUsed(boolean used) {
		this.used = used;
	}
	public Date getDeadline() {
		return deadline;
	}
	public void setDeadline(Date deadline) {
		this.deadline = deadline;
	}
	public Date getUse_date() {
		return use_date;
	}
	public void setUse_date(Date use_date) {
		this.use_date = use_date;
	}
}
